<script>
	import Vue from "vue";
	export default {
		onLaunch() {
			// 检测客户端更新
			this.$store.dispatch("update/update");
			// 仅首次打开一次性加载数据
			this.$store.dispatch("common/init");
			// 同步购物车 本地 & 网络
			this.$store.dispatch("cart/get");
			// 同步 动态数据
			this.$store.dispatch("statistics/get");
			//获取配置信息
			this.$commonNetwork.getConfigData();
		},
		onShow() {
			// 启动或重启即时通讯
			this.$store.dispatch("chat/connectSocket");
		},
		onHide() {
			// 断开即时通讯
			this.$store.dispatch("chat/close");
		},
	};
</script>

<style>
	/* #ifndef APP-NVUE */
	@import "static/style/colorui.css";
	@import "static/style/wanlshop.css";
	@import "static/style/iconfont.css";

	/* #endif */

	@import "/css/fontSize.css";
	@import "/css/display.css";
	@import "/css/pages.css";

	.inputPlaceholder {
		font-size: 28rpx;
	}

	/*选中样式*/
	radio .wx-radio-input.wx-radio-input-checked {
		border-color: #f78209 !important;
		background: #f78209 !important;
	}

	radio .wx-radio-input.wx-radio-input-checked::before {
		border-radius: 50%;
		width: 20px;
		height: 20px;
		line-height: 20px;
		text-align: center;
		font-size: 15px;
		color: #fff;
		background: transparent;
		transform: translate(-50%, -50%) scale(1);
		-webkit-transform: translate(-50%, -50%) scale(1);
	}

	/*禁用样式*/
	radio .wx-radio-input.wx-radio-input-disabled {
		border: 2rpx solid #999999;
		border-radius: 100%;
		background: red !important;
	}

	page {
		background-color: #f6f6f6;
	}

	view,
	text {
		line-height: 1;
	}

	image {
		display: block;
	}
</style>
